/**
* 子模块路由
* 商客微信
*/

var router = function ($urlRouterProvider, $stateProvider) {

    $stateProvider

        //样式列表
        .state('app.skwxStyleList', {
            url: "/skwxStyleList",
            views: {
                'main@': {
                    template: require('./views/skwxStyleList.html'),
                    controller: 'skwxStyleList',
                }
            },
            resolve: {

            }
        })

        //分类列表
        .state('app.skwxClassList', {
            url: "/skwxClassList",
            views: {
                'main@': {
                    template: require('./views/skwxClassList.html'),
                    controller: 'skwxClassList',
                }
            },
            resolve: {

            }
        })
         //已添加分类产品列表
         .state('app.skwxClassProduct', {
            url: "/skwxClassProduct/:class_code",
            views: {
                'main@': {
                    template: require('./views/skwxClassProduct.html'),
                    controller: 'skwxClassProduct',
                }
            },
            resolve: {
                class_code : function(){
                    return '';
                }
            }
        })
        //分类列表
        .state('app.leagueCheckProduct', {
            url: "/leagueCheckProduct",
            views: {
                'main@': {
                    template: require('./views/leagueCheckProduct.html'),
                    controller: 'leagueCheckProduct',
                }
            },
            resolve: {

            }
        })
        //添加买单产品
        .state('app.leagueAddProduct', {
            url: "/leagueAddProduct",
            views: {
                'main@': {
                    template: require('./views/leagueAddProduct.html'),
                    controller: 'leagueAddProduct',
                }
            },
            resolve: {

            }
        })
        
        //vip订单
        .state('app.leagueVIPOrder', {
            url: "/leagueVIPOrder",
            views: {
                'main@': {
                    template: require('./views/leagueVIPOrder.html'),
                    controller: 'leagueVIPOrder',
                }
            },
            resolve: {

            }
        })
        //vip订单详情
        .state('app.leagueVIPOrderInfo', {
            url: "/leagueVIPOrderInfo",
            views: {
                'main@': {
                    template: require('./views/leagueVIPOrderInfo.html'),
                    controller: 'leagueVIPOrderInfo',
                }
            },
            resolve: {

            }
        })
                //卡订单详情
        .state('app.leagueOrderInfo', {
            url: "/leagueOrderInfo",
            views: {
                'main@': {
                    template: require('./views/leagueOrderInfo.html'),
                    controller: 'leagueOrderInfo',
                }
            },
            resolve: {

            }
        })
                //订单
        .state('app.leagueOrder', {
            url: "/leagueOrder",
            views: {
                'main@': {
                    template: require('./views/leagueOrder.html'),
                    controller: 'leagueOrder',
                }
            },
            resolve: {

            }
        })
        //栏目列表
        .state('app.skwxColumnList', {
            url: "/skwxColumnList",
            views: {
                'main@': {
                    template: require('./views/skwxColumnList.html'),
                    controller: 'skwxColumnList',
                }
            },
            resolve: {

            }
        })

        //商城基本信息
        .state('app.skwxShopCommon', {
            url: "/skwxShopCommon",
            views: {
                'main@': {
                    template: require('./views/skwxShopCommon.html'),
                    controller: 'skwxShopCommon',
                }
            },
            resolve: {

            }
        })

        //商城装修
        .state('app.skwxCommonShow', {
            url: "/skwxCommonShow",
            views: {
                'main@': {
                    template: require('./views/skwxCommonShow.html'),
                    controller: 'skwxCommonShow',
                }
            },
            resolve: {
                getDate : function(utilservice){
                      return utilservice.getDate;
                },
                date2str: function (utilservice) {
                        return utilservice.date2str;
                },
                str2date: function (utilservice) {
                    return utilservice.str2date;
                },
            }
        })

        //商城热搜
        .state('app.skwxShopHotSearch', {
            url: "/skwxShopHotSearch",
            views: {
                'main@': {
                    template: require('./views/skwxShopHotSearch.html'),
                    controller: 'skwxShopHotSearch',
                }
            },
            resolve: {

            }
        })

        //公共菜单
        .state('app.skwxShopMenu', {
            url: "/skwxShopMenu",
            views: {
                'main@': {
                    template: require('./views/skwxShopMenu.html'),
                    controller: 'skwxShopMenu',
                }
            },
            resolve: {

            }
        })

        //我的菜单
        .state('app.skwxShopMyMenu', {
            url: "/skwxShopMyMenu",
            views: {
                'main@': {
                    template: require('./views/skwxShopMyMenu.html'),
                    controller: 'skwxShopMyMenu',
                }
            },
            resolve: {

            }
        })

        //我的产品
        .state('app.skwxMyProduct', {
            url: "/skwxMyProduct",
            views: {
                'main@': {
                    template: require('./views/skwxMyProduct.html'),
                    controller: 'skwxMyProduct',
                }
            },
            resolve: {

            }
        })

        //店铺列表-平台管理员
        .state('app.skwxShopList', {
            url: "/skwxShopList",
            views: {
                'main@': {
                    template: require('./views/skwxShopList.html'),
                    controller: 'skwxShopList',
                }
            },
            resolve: {

            }
        })

        //我的店铺账户信息
        .state('app.skwxMyShop', {
            url: "/skwxMyShop",
            views: {
                'main@': {
                    template: require('./views/skwxMyShop.html'),
                    controller: 'skwxMyShop',
                }
            },
            resolve: {

            }
        })

        //平台订单
        .state('app.skwxOrderList', {
            url: "/skwxOrderList",
            views: {
                'main@': {
                    template: require('./views/skwxOrderList.html'),
                    controller: 'skwxOrderList',
                }
            },
            resolve: {
                getDate: function (utilservice) {
                    return utilservice.getDate;
                }
            }
        })

        //我店铺订单
        .state('app.skwxShopOrderList', {
            url: "/skwxShopOrderList/:wxuid",
            views: {
                'main@': {
                    template: require('./views/skwxShopOrderList.html'),
                    controller: 'skwxShopOrderList',
                }
            },
            resolve: {
                getDate: function (utilservice) {
                    return utilservice.getDate;
                }
            }
        })


        //产品海报
        .state('app.skwxPoster', {
          url: "/skwxPoster",
          views: {
              'main@': {
                  template: require('./views/skwxPoster.html'),
                  controller: 'skwxPoster',
              }
          },
          resolve: {
            
          }
      })

        //产品海报列表
        .state('app.skwxPosterList', {
          url: "/skwxPosterList",
          views: {
              'main@': {
                  template: require('./views/skwxPosterList.html'),
                  controller: 'skwxPosterList',
                }
              },
              resolve: {
                
              }
            })
            
      //提现
      .state('app.skwxwithdraw', {
          url: "/skwxwithdraw",
          views: {
              'main@': {
                  template: require('./views/skwxwithdraw.html'),
                  controller: 'skwxwithdraw',
              }
          },
          resolve: {
            
          }
      })
      //添加人员
      .state('app.skwxAddUserList', {
          url: "/skwxAddUserList",
          views: {
              'main@': {
                  template: require('./views/skwxAddUserList.html'),
                  controller: 'skwxAddUserList',
              }
          },
          resolve: {
            
          }
      })
      //提现记录
      .state('app.skwxWithdrawList', {
          url: "/skwxWithdrawList",
          views: {
              'main@': {
                  template: require('./views/skwxWithdrawList.html'),
                  controller: 'skwxWithdrawList',
              }
          },
          resolve: {
            
          }
      })
      //推送消息
      .state('app.pushinfo', {
          url: "/pushinfo",
          views: {
              'main@': {
                  template: require('./views/pushinfo.html'),
                  controller: 'pushinfo',
              }
          },
          resolve: {
            
          }
      })
      //一级分销商列表
      .state('app.skwxADistributorList', {
          url: "/skwxADistributorList/:pwxuid/:level/:wxuid",
          views: {
              'main@': {
                  template: require('./views/skwxADistributorList.html'),
                  controller: 'skwxADistributorList',
              }
          },
          resolve: {
            
          }
      })
      //待审核分销商列表
      .state('app.skwxNotDistributorList', {
          url: "/skwxNotDistributorList",
          views: {
              'main@': {
                  template: require('./views/skwxNotDistributorList.html'),
                  controller: 'skwxNotDistributorList',
              }
          },
          resolve: {
            
          }
      })
      //下级分销商列表
      .state('app.skwxBDistributorList', {
          url: "/skwxBDistributorList/:wxuid/:level",
          views: {
              'main@': {
                  template: require('./views/skwxBDistributorList.html'),
                  controller: 'skwxBDistributorList',
              }
          },
          resolve: {
            
          }
      })
      //下级分销商列表
      .state('app.skwxCapitalFlowList', {
          url: "/skwxCapitalFlowList",
          views: {
              'main@': {
                  template: require('./views/skwxCapitalFlowList.html'),
                  controller: 'skwxCapitalFlowList',
              }
          },
          resolve: {
              str2date: function (utilservice) {
                  return utilservice.str2date;
              },
              date2str: function (utilservice) {
                  return utilservice.date2str;
              }
                
          }
      })


       //爆款推荐
       .state('app.boomproduct', {
        url: "/boomproduct",
        views: {
            'main@': {
                template: require('./views/boomproduct.html'),
                controller: 'boomproduct',
            }
        },
        resolve: {
           
        }
    })
    //盟卡商家列表
    .state('app.cardStoreList', {
        url: "/cardStoreList",
        views: {
            'main@': {
                template: require('./views/cardStoreList.html'),
                controller: 'cardStoreList',
            }
        },
        resolve: {
          
        }
    })

    
       //首页头条
       .state('app.skheadline', {
        url: "/headline?type",
        views: {
            'main@': {
                template: require('./views/headline.html'),
                controller: 'headline',
            }
        },
        resolve: {
            aa_type : function(){
                return '';
            }
        }
    })

    //义卖商品
    .state('app.voluntaryactproduct', {
        url: "/voluntaryactproduct",
        views: {
        'main@': {
        template: require('./views/voluntaryactproduct.html'),
        controller: 'voluntaryactproduct',
        }
        },
        resolve: {
        }
    })

      

    //惠卡多
    .state('app.discountcardsproduct', {
        url: "/discountcardsproduct",
        views: {
            'main@': {
                template: require('./views/discountcards.html'),
                controller: 'discountcards',
            }
        },
        resolve: {
           
        }
    })
    
        //邀请分销商
    .state('app.skwxInviteDistributor', {
      url: "/skwxInviteDistributor",
      views: {
          'main@': {
              template: require('./views/skwxInviteDistributor.html'),
              controller: 'skwxInviteDistributor',
          }
      },
      resolve: {
         
      }
  })
  
      //限时购
      .state('app.skwxShopFlashsale', {
        url: "/skwxShopFlashsale",
        views: {
            'main@': {
                template: require('./views/skwxShopFlashsale.html'),
                controller: 'skwxShopFlashsale',
            }
        },
        resolve: {
           
        }
    })
    
    //限时购
    .state('app.addFlashsale', {
      url: "/addFlashsale",
      views: {
          'main@': {
              template: require('./views/addFlashsale.html'),
              controller: 'addFlashsale',
          }
      },
      resolve: {
         
      }
  })

    //惠卡多添加
    .state('app.discountcardinfo', {
        url: "/discountcardinfo",
        views: {
            'main@': {
                template: require('./views/discountcardinfo.html'),
                controller: 'discountcardinfo',
            }
        },
        resolve: {
          
        }
    })

    //店铺提现记录
    .state('app.skwxDpWithdrawList', {
      url: "/skwxDpWithdrawList",
      views: {
          'main@': {
              template: require('./views/skwxDpWithdrawList.html'),
              controller: 'skwxDpWithdrawList',
          }
      },
    resolve: {
       
    }
})

  //名片列表
  .state('app.skwxNameCardlist', {
    url: "/skwxNameCardlist",
    views: {
        'main@': {
            template: require('./views/skwxNameCardlist.html'),
            controller: 'skwxNameCardlist',
        }
    },
    resolve: {
       
    }
})

  //名片添加
  .state('app.skwxNameCardInfo', {
    url: "/skwxNameCardInfo",
    views: {
        'main@': {
            template: require('./views/skwxNameCardInfo.html'),
            controller: 'skwxNameCardInfo',
        }
    },
    resolve: {
       
    }
})

  //名片添加
  .state('app.skwxInmer', {
      url: "/skwxInmer",
      views: {
          'main@': {
              template: require('./views/skwxInmer.html'),
              controller: 'skwxInmer',
          }
      },
      resolve: {
        
      }
  })

  //会员列表
  .state('app.skwxMemberList', {
      url: "/skwxMemberList",
      views: {
          'main@': {
              template: require('./views/skwxMemberList.html'),
              controller: 'skwxMemberList',
          }
      },
      resolve: {
          str2date: function (utilservice) {
              return utilservice.str2date;
          },
          date2str: function (utilservice) {
              return utilservice.date2str;
          }
      }
  })

  //粉丝统计柱状图
  .state('app.skwxFunsCount', {
    url: "/skwxfunscount",
    views: {
        'main@': {
            template: require('./views/skwxFunsCount.html'),
            controller: 'skwxFunsCount',
        }
    },
    resolve: {
        getDate : function(utilservice){
            return utilservice.getDate;
        }
    }
})
  //店铺订单统计
  .state('app.saleOrderCount', {
    url: "/ordercount",
    views: {
        'main@': {
            template: require('./views/orderCount.html'),
            controller: 'orderCount',
        }
    },
    resolve: {
        getDate : function(utilservice){
            return utilservice.getDate;
        }
    }
})

//店铺订单统计
.state('app.distributioncard', {
    url: "/distributioncard",
    views: {
        'main@': {
            template: require('./views/distributioncard.html'),
            controller: 'distributioncard',
        }
    },
    resolve: {
        // getDate : function(utilservice){
        //     return utilservice.getDate;
        // }
    }
  })

    //店铺订单统计
    .state('app.skwxFeedback', {
      url: "/skwxFeedback",
      views: {
          'main@': {
              template: require('./views/skwxFeedback.html'),
              controller: 'skwxFeedback',
          }
      },
      resolve: {
          // getDate : function(utilservice){
          //     return utilservice.getDate;
          // }
      }
    })

    //套票质量统计
    .state('app.questionnaireCount', {
        url: "/questionnaireCount",
        views: {
            'main@': {
                template: require('./views/questionnaireCount.html'),
                controller: 'questionnaireCount',
            }
        },
        resolve: {

        }
    })
   
    //套票质量答题列表
    .state('app.answerList', {
        url: "/answerList",
        views: {
            'main@': {
                template: require('./views/answerList.html'),
                controller: 'answerList',
            }
        },
        resolve: {

        }
    })

    //景区服务评价统计
    .state('app.placeServiceCount', {
        url: "/placeServiceCount",
        views: {
            'main@': {
                template: require('./views/placeServiceCount.html'),
                controller: 'placeServiceCount',
            }
        },
        resolve: {

        }
    })
   
    //景区服务评价人列表
    .state('app.serviceComment', {
        url: "/serviceComment",
        views: {
            'main@': {
                template: require('./views/serviceComment.html'),
                controller: 'serviceComment',
            }
        },
        resolve: {

        }
    })
   
    //景区服务评价人列表
    .state('app.serviceCountByPlace', {
        url: "/serviceCountByPlace",
        views: {
            'main@': {
                template: require('./views/serviceCountByPlace.html'),
                controller: 'serviceCountByPlace',
            }
        },
        resolve: {

        }
    })
   
    //景区服务评价人列表
    .state('app.shopAdvertisement', {
        url: "/shopAdvertisement",
        views: {
            'main@': {
                template: require('./views/shopAdvertisement.html'),
                controller: 'shopAdvertisement',
            }
        },
        resolve: {

        }
    })

    //套票库存列表
    .state('app.packageStockList', {
      url: "/packageStockList",
      views: {
          'main@': {
              template: require('./views/packageStockList.html'),
              controller: 'packageStockList',
          }
      },
      resolve: {

      }
  })

  //审核分销商列表
  .state('app.examineDistributor', {
      url: "/examineDistributor",
      views: {
          'main@': {
              template: require('./views/examineDistributor.html'),
              controller: 'examineDistributor',
          }
      },
      resolve: {

      }
  })

  //发放情况列表
  .state('app.sendStatusList', {
      url: "/sendStatusList",
      views: {
          'main@': {
              template: require('./views/sendStatusList.html'),
              controller: 'sendStatusList',
          }
      },
      resolve: {

      }
  })
  //免费套票领取信息列表
  .state('app.ticketReceive', {
      url: "/ticketReceive",
      views: {
          'main@': {
              template: require('./views/ticketReceive.html'),
              controller: 'ticketReceive',
          }
      },
      resolve: {

      }
  })
   
      
  
};

module.exports = router;